{% extends "tardis_portal/search_template.html" %}

{% block searchPageBody %}

{% if searchForm.errors %}
  <p style="color: red;">
    Please correct the error{{ searchForm.errors|pluralize }} below.
  </p>
{% endif %}

<form name="input" action="." method="get">
  <table>
    {% for fieldset in searchForm.fieldsets %}
    <tr>
      <td>
        <fieldset class="{{ fieldset.classes }}">
		  {% if fieldset.legend %}
		    <!-- <legend>{{ fieldset.legend }}</legend> -->
		  {% endif %}
		  {% if fieldset.description %}
		    <p class="description">{{ fieldset.description }}</p>
		  {% endif %}

		  {% for field in fieldset %}
		        {{ field.label_tag }}<br>
		        {{ field }} {{ field.errors }}<br><br>
		  {% endfor %}
		</fieldset>
      </td>
    </tr>
    {% endfor %}
    <tr>
      <td><input type="submit" value="Submit"></td>
    </tr>
  </table>
</form>

{% endblock searchPageBody %}
